package AST;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class TargetList {
	private List<Target> targetList= new ArrayList<Target>();

	public TargetList(List<Target> targetList) {
		print();
		this.targetList = targetList;
	}

	public List<Target> getTargetList() {
		return targetList;
	}

	public void setTargetList(List<Target> targetList) {
		this.targetList = targetList;
	}

	public void print() {
		System.out.println("TargetList");
	}

	public void genC(PW pw) {
		Iterator<Target> itTarget = targetList.iterator();

		itTarget.next().genC(pw);
		while (itTarget.hasNext()) {
			pw.print(", ");
			itTarget.next().genC(pw);
		}

	}

}
